#include "taskthreadrequest.h"

namespace Wishmaster {

TaskThreadRequest::TaskThreadRequest(const ThreadId& id, const QUrl& link,
									 const QString& msg, Connector* connector)
	: TaskRequest(TaskRequest::rtThread, link, msg, connector),
	m_threadId(id)
{
}

ThreadId TaskThreadRequest::threadId() const
{
	return m_threadId;
}

void TaskThreadRequest::slot_result(const RequestPtr& rq, const QByteArray& arr)
{
	if(rq)
		emit result(this, arr, rq->contentType());
	TaskRequest::slot_result(rq, arr);
}

} // namespace Wishmaster
